package LIST;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

public class ListTest {
    public static void main(String[] args) {
        ArrayList<Map<String, Object>> list = new ArrayList<>();
        Map<String, Object> map = new HashMap<>();
        map.put("name", "大头");
        map.put("id", 86765);
        map.put("age", 10);
        list.add(map);
        Map<String, Object> map1 = new HashMap<>();
        map1.put("name", "刘谋");
        map1.put("id", 44353);
        map1.put("age", 45);
        list.add(map1);
        for (Map<String, Object> map2 : list) {
            System.out.println(map2);
        }
    }
}
